// 数据统计模块

export type DataStatisticsQuery = {
  startTime?: string;
  endTime?: string;
  month?: string;
};

export type DataStatisticsResult = {
  workDataCount: number;    // 作业数据数量
  excavatorCount: number;   // 钩机数量
  transportCount: number;   // 运输车数量
  driverCount: number;      // 司机数量
};

// Driver data type
export type DriverInfo = {
  userId: number;
  username: string;
  nickname: string;
  phone: string;
  deptName: string;
  vehicleNumber?: string;
  vehicleTitle?: string;
  driverWorkTotal?: number;
  scheduleName?: string;
  // Scheduling fields
  scheduleType?: string;
  driverPosition?: number;
  scheduleTime1?: string;
  scheduleTime2?: string;
  scheduleTime3?: string;
};

// Excavator data type
export type ExcavatorInfo = {
  vehicleId: number;
  vehicleNumber: string;
  title: string;
  vehicleTypeCd: string;
  deptName: string;
};

// Transport vehicle data type
export type TransportVehicleInfo = {
  vehicleId: number;
  vehicleNumber: string;
  title: string;
  vehicleTypeCd: string;
  deptName: string;
};

// Work data type based on the actual API response
export type WorkDataInfo = {
  id: number;
  monitorId: number;
  monitorDescription: string;
  originalPath: string;
  originalFilename: string;
  newFilename: string;
  storagePath: string;
  fileSize: number;
  fileType: string;
  fileUrl: string;
  processStatus: string;
  processStatusDisplay: string;
  errorMessage: string;
  processTime: string;
  fileMd5: string;
  fileTag: string;
  carNumber: string;
  carNumberRes: string;
  createTime: string;
  createDate: string;
  deptName: string;
  driverId: number;
  driverName: string;
};